package org.hjq.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import javax.naming.Name;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entry(objectClasses = {"inetOrgPerson"})
public class LdapUser {

        @Id
        private Name dn;

        @Attribute(name = "cn")
        private String cn;

        @Attribute(name = "sn")
        private String sn;

        @Attribute(name = "userId")
        private String userId;

        @Attribute(name = "description")
        private String publicKey;
}
